// CodeContracts
// 
// Copyright (c) Microsoft Corporation
// 
// All rights reserved. 
// 
// MIT License
// 
// Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
// 
// The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
// 
// THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

// File System.IO.Pipes.PipeStream.cs
// Automatically generated contract file.
using System.Collections.Generic;
using System.IO;
using System.Text;
using System.Diagnostics.Contracts;
using System;

// Disable the "this variable is not used" warning as every field would imply it.
#pragma warning disable 0414
// Disable the "this variable is never assigned to".
#pragma warning disable 0067
// Disable the "this event is never assigned to".
#pragma warning disable 0649
// Disable the "this variable is never used".
#pragma warning disable 0169
// Disable the "new keyword not required" warning.
#pragma warning disable 0109
// Disable the "extern without DllImport" warning.
#pragma warning disable 0626
// Disable the "could hide other member" warning, can happen on certain properties.
#pragma warning disable 0108


namespace System.IO.Pipes
{
  abstract public partial class PipeStream : Stream
  {
    #region Methods and constructors
    public override IAsyncResult BeginRead(byte[] buffer, int offset, int count, AsyncCallback callback, Object state)
    {
      return default(IAsyncResult);
    }

    public override IAsyncResult BeginWrite(byte[] buffer, int offset, int count, AsyncCallback callback, Object state)
    {
      return default(IAsyncResult);
    }

    protected internal virtual new void CheckPipePropertyOperations()
    {
    }

    protected internal void CheckReadOperations()
    {
    }

    protected internal void CheckWriteOperations()
    {
    }

    protected override void Dispose(bool disposing)
    {
    }

    public override int EndRead(IAsyncResult asyncResult)
    {
      return default(int);
    }

    public override void EndWrite(IAsyncResult asyncResult)
    {
    }

    public override void Flush()
    {
    }

    public PipeSecurity GetAccessControl()
    {
      Contract.Ensures(Contract.Result<System.IO.Pipes.PipeSecurity>() != null);

      return default(PipeSecurity);
    }

    protected void InitializeHandle(Microsoft.Win32.SafeHandles.SafePipeHandle handle, bool isExposed, bool isAsync)
    {
    }

    protected PipeStream(PipeDirection direction, int bufferSize)
    {
    }

    protected PipeStream(PipeDirection direction, PipeTransmissionMode transmissionMode, int outBufferSize)
    {
    }

    public override int Read(byte[] buffer, int offset, int count)
    {
      return default(int);
    }

    public override int ReadByte()
    {
      return default(int);
    }

    public override long Seek(long offset, SeekOrigin origin)
    {
      return default(long);
    }

    public void SetAccessControl(PipeSecurity pipeSecurity)
    {
    }

    public override void SetLength(long value)
    {
    }

    public void WaitForPipeDrain()
    {
    }

    public override void Write(byte[] buffer, int offset, int count)
    {
    }

    public override void WriteByte(byte value)
    {
    }
    #endregion

    #region Properties and indexers
    public override bool CanRead
    {
      get
      {
        return default(bool);
      }
    }

    public override bool CanSeek
    {
      get
      {
        return default(bool);
      }
    }

    public override bool CanWrite
    {
      get
      {
        return default(bool);
      }
    }

    public virtual new int InBufferSize
    {
      get
      {
        return default(int);
      }
    }

    public bool IsAsync
    {
      get
      {
        return default(bool);
      }
    }

    public bool IsConnected
    {
      get
      {
        return default(bool);
      }
      protected set
      {
      }
    }

    protected bool IsHandleExposed
    {
      get
      {
        return default(bool);
      }
    }

    public bool IsMessageComplete
    {
      get
      {
        return default(bool);
      }
    }

    public override long Length
    {
      get
      {
        return default(long);
      }
    }

    public virtual new int OutBufferSize
    {
      get
      {
        return default(int);
      }
    }

    public override long Position
    {
      get
      {
        return default(long);
      }
      set
      {
      }
    }

    public virtual new PipeTransmissionMode ReadMode
    {
      get
      {
        return default(PipeTransmissionMode);
      }
      set
      {
      }
    }

    public Microsoft.Win32.SafeHandles.SafePipeHandle SafePipeHandle
    {
      get
      {
        Contract.Ensures(Contract.Result<Microsoft.Win32.SafeHandles.SafePipeHandle>() != null);

        return default(Microsoft.Win32.SafeHandles.SafePipeHandle);
      }
    }

    public virtual new PipeTransmissionMode TransmissionMode
    {
      get
      {
        return default(PipeTransmissionMode);
      }
    }
    #endregion
  }
}
